﻿<Window x:Class="DSLPedItemWizard.MainWizardWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:framework="clr-namespace:Dsl.Ped.Framework.Resources;assembly=DslPedFramework"
        xmlns:converters="clr-namespace:Dsl.Ped.Common.Converters;assembly=DSLCommon"
        mc:Ignorable="d" 
        MinWidth="450"
        MinHeight="250"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        Title="DSLPed File Wizard"
        d:DesignHeight="300" d:DesignWidth="300">
    <Window.Resources>
        <converters:BoolToVisibilityConverter x:Key="boolToVisibilityConverter"/>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="60"/>
        </Grid.RowDefinitions>
        
        <Grid.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                <GradientStop Color="#FFFFFF" Offset="0" />
                <GradientStop Color="#F4F2F2" Offset="0.5" />
                <GradientStop Color="#FFFFFF" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>

        <ContentPresenter x:Name="mainContentPresenter" Grid.Row="0" Content="{Binding Path=PageContent}"/>

        <Grid Grid.Row="1" Grid.Column="1" Background="#F0EEEE">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" Margin="10,10,10,10">
                <Button Content="{x:Static framework:Lang.Previous}" Margin="5,5,5,5" Name="PreviousButton" Command="{Binding Path=PreviousCommand}" Width="80" Visibility="{Binding Path=IsPreviousVisible, Converter={StaticResource boolToVisibilityConverter}, ConverterParameter=Collapsed}"/>
                <Button Content="{x:Static framework:Lang.Next}" Margin="5,5,5,5" Name="NextButton" Command="{Binding Path=NextCommand}" Width="80" Visibility="{Binding Path=IsNextVisible, Converter={StaticResource boolToVisibilityConverter}, ConverterParameter=Collapsed}"/>
                <Button Content="{x:Static framework:Lang.Finish}" Margin="5,5,5,5" Width="80" IsEnabled="{Binding Path=IsFinishEnabled}" Click="FinishButton_OnClick"/>
                <Button Content="{x:Static framework:Lang.Cancel}" Margin="5,5,5,5" Name="CancelButton" Click="CancelButton_OnClick" Width="80"/>
            </StackPanel>
        </Grid>
    </Grid>
</Window>

    